package com.ziyun.pop.modules.storeMaterials.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.storeMaterials.entity.ErpStockEntity;
import com.ziyun.pop.modules.storeMaterials.entity.MaterialEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author ZhaoWei
 * @Date 2018/10/18 14:40
 * @Version V1.0
 */
public interface MaterialDao extends BaseMapper<MaterialEntity> {

	int getqueryCount(@Param("categoryId") Integer categoryId);

	int getqueryCount2();

	int getqueryCountByname(@Param("materialName") String materialName);

	int getqueryCountBycategoryId();

	List<MaterialEntity> getQueryListByname(@Param("params") Map<String,Object> params);

	List<MaterialEntity> getQueryListBycategoryId(@Param("params") Map<String,Object> params);


	List<MaterialEntity> getQueryList(@Param("params") Map<String,Object> params);

	List<MaterialEntity> getQueryList2(@Param("params") Map<String,Object> params);


	MaterialEntity selectByMaterialId(@Param("materialId") Integer materialId);

	void updateMaterial(@Param("map") Map<String,Object> map);

    ErpStockEntity getLoginErpStock(Long sellerId);
}
